package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMaterialDto;
import com.heima.model.wemedia.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author 21236
 */
public interface IWmMaterialService extends IService<WmMaterial> {

    /**
     * 文件上传
     * @param file
     * @return
     */
    ResponseResult uploadPicture(MultipartFile file);

    /**
     * 素材列表分页查询
     * @param dto
     * @return
     */
    ResponseResult iPage(WmMaterialDto dto);
}
